﻿using PIUMania.Entidades;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PIUMania.BLL
{
    public class RecordeBLL
    {
        private static RecordeBLL instance = null;
        public List<RecordeRequest> listaRecordes { get; set; }

        public static RecordeBLL Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new RecordeBLL();
                }
                return instance;
            }
        }

        public void registraMock(RecordeRequest request)
        {
            if (listaRecordes == null)
            {
                listaRecordes = new List<RecordeRequest>();
            }
            listaRecordes.Add(request);
        }

        public List<RecordeRequest> listaMock()
        {
            if (listaRecordes == null)
            {
                return null;
            }
            return listaRecordes;
        }
    }
}
